Integrand size = 20, antiderivative size = 26 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x}+\frac {2 b \text {arctanh}\left (\sin \left (c+d \sqrt {x}\right )\right )}{d} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {14, 4289, 3855} \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x}+\frac {2 b \text {arctanh}\left (\sin \left (c+d \sqrt {x}\right )\right )}{d} \]
[In]
[Out]
Rule 14
Rule 3855
Rule 4289
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {a}{\sqrt {x}}+\frac {b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}}\right ) \, dx \\ & = 2 a \sqrt {x}+b \int \frac {\sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx \\ & = 2 a \sqrt {x}+(2 b) \text {Subst}\left (\int \sec (c+d x) \, dx,x,\sqrt {x}\right ) \\ & = 2 a \sqrt {x}+\frac {2 b \text {arctanh}\left (\sin \left (c+d \sqrt {x}\right )\right )}{d} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x}+\frac {2 b \text {arctanh}\left (\sin \left (c+d \sqrt {x}\right )\right )}{d} \]
[In]
[Out]
Time = 0.32 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.23
method | result | size |
derivativedivides | \(2 a \sqrt {x}+\frac {2 b \ln \left (\sec \left (c +d \sqrt {x}\right )+\tan \left (c +d \sqrt {x}\right )\right )}{d}\) | \(32\) |
default | \(2 a \sqrt {x}+\frac {2 b \ln \left (\sec \left (c +d \sqrt {x}\right )+\tan \left (c +d \sqrt {x}\right )\right )}{d}\) | \(32\) |
parts | \(2 a \sqrt {x}+\frac {2 b \ln \left (\sec \left (c +d \sqrt {x}\right )+\tan \left (c +d \sqrt {x}\right )\right )}{d}\) | \(32\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.58 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=\frac {2 \, a d \sqrt {x} + b \log \left (\sin \left (d \sqrt {x} + c\right ) + 1\right ) - b \log \left (-\sin \left (d \sqrt {x} + c\right ) + 1\right )}{d} \]
[In]
[Out]
Time = 1.24 (sec) , antiderivative size = 58, normalized size of antiderivative = 2.23 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 a \sqrt {x} + 2 b \left (\begin {cases} \frac {\sqrt {x} \left (\tan {\left (c \right )} \sec {\left (c \right )} + \sec ^{2}{\left (c \right )}\right )}{\tan {\left (c \right )} + \sec {\left (c \right )}} & \text {for}\: d = 0 \\\frac {\log {\left (\tan {\left (c + d \sqrt {x} \right )} + \sec {\left (c + d \sqrt {x} \right )} \right )}}{d} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.19 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2 \, a \sqrt {x} + \frac {2 \, b \log \left (\sec \left (d \sqrt {x} + c\right ) + \tan \left (d \sqrt {x} + c\right )\right )}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 50 vs. \(2 (22) = 44\).
Time = 0.35 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.92 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=\frac {2 \, {\left ({\left (d \sqrt {x} + c\right )} a + b \log \left ({\left | \tan \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - b \log \left ({\left | \tan \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right ) - 1 \right |}\right )\right )}}{d} \]
[In]
[Out]
Time = 15.74 (sec) , antiderivative size = 71, normalized size of antiderivative = 2.73 \[ \int \frac {a+b \sec \left (c+d \sqrt {x}\right )}{\sqrt {x}} \, dx=2\,a\,\sqrt {x}-\frac {2\,b\,\ln \left (\frac {b\,2{}\mathrm {i}-2\,b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}}{\sqrt {x}}\right )}{d}+\frac {2\,b\,\ln \left (\frac {b\,2{}\mathrm {i}+2\,b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}}{\sqrt {x}}\right )}{d} \]
[In]
[Out]